/*
* ============================================================================
*  Name        : camengtestdocument.h
*  Part of     : camengtest
*  Description : 
*  Version     : %version: 2 %
*
* This program is free software. It comes without any warranty, to
* the extent permitted by applicable law. You can redistribute it
* and/or modify it under the terms of the Do What The Fuck You Want
* To Public License, Version 2, as published by Sam Hocevar. See
* http://sam.zoy.org/wtfpl/COPYING for more details.
*
* You are welcome to, but not required to, contribute any modifications that
* improve stability, usability and/or feature set of the library back to
* Symbian/S60 Camera Wrapper project, as long as binary compatibility is
* retained. See https://projects.forum.nokia.com/camerawrapper for more info.
* ============================================================================
*/

#ifndef __CAMENGTESTDOCUMENT_H__
#define __CAMENGTESTDOCUMENT_H__

// INCLUDES
#include <akndoc.h>

// FORWARD DECLARATIONS
class CCAMENGTESTAppUi;
class CEikApplication;


// CLASS DECLARATION

/**
* CCAMENGTESTDocument application class.
* An instance of class CCAMENGTESTDocument is the Document part of the
* AVKON application framework for the CAMENGTEST example application.
*/
class CCAMENGTESTDocument : public CAknDocument
    {
    public: // Constructors and destructor

        /**
        * NewL.
        * Two-phased constructor.
        * Construct a CCAMENGTESTDocument for the AVKON application aApp
        * using two phase construction, and return a pointer
        * to the created object.
        * @param aApp Application creating this document.
        * @return A pointer to the created instance of CCAMENGTESTDocument.
        */
        static CCAMENGTESTDocument* NewL( CEikApplication& aApp );

        /**
        * NewLC.
        * Two-phased constructor.
        * Construct a CCAMENGTESTDocument for the AVKON application aApp
        * using two phase construction, and return a pointer
        * to the created object.
        * @param aApp Application creating this document.
        * @return A pointer to the created instance of CCAMENGTESTDocument.
        */
        static CCAMENGTESTDocument* NewLC( CEikApplication& aApp );

        /**
        * ~CCAMENGTESTDocument
        * Virtual Destructor.
        */
        virtual ~CCAMENGTESTDocument();

    public: // Functions from base classes

        /**
        * CreateAppUiL
        * From CEikDocument, CreateAppUiL.
        * Create a CCAMENGTESTAppUi object and return a pointer to it.
        * The object returned is owned by the Uikon framework.
        * @return Pointer to created instance of AppUi.
        */
        CEikAppUi* CreateAppUiL();

    private: // Constructors

        /**
        * ConstructL
        * 2nd phase constructor.
        */
        void ConstructL();

        /**
        * CCAMENGTESTDocument.
        * C++ default constructor.
        * @param aApp Application creating this document.
        */
        CCAMENGTESTDocument( CEikApplication& aApp );

    };

#endif // __CAMENGTESTDOCUMENT_H__

// End of File

